package com.ynet.middleground.contract.bean;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 用户证件信息
 * @date 2020-04-15 23:32
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "用户证件信息", description = "场景式存证，用户证件信息")
public class CertificateBean implements Serializable {

    private static final long serialVersionUID = -8161230837622230547L;

    @ApiModelProperty(
        value = "证件类型 \n ID_CARD：身份证 \n CODE_ORG：组织机构代码 \n CODE_USC：社会统一信用代码 \n CODE_REG：工商注册号"
            + " \n HK_CARD：香港居民来往内地通行证 \n MO_CARD：澳门居民来往内地通行证 \n TW_CARD：台湾居民来往大陆通行证 \n FOR_CARD：护照",
        notes = "证件类型", dataType = "String", required = true)
    @NotBlank(message = "证件类型不能为空")
    private String type;

    @ApiModelProperty(value = "证件号码", notes = "证件号码", dataType = "String", required = true)
    @NotBlank(message = "证件号码不能为空")
    private String number;

    @ApiModelProperty(value = "用户/企业/组织名称", notes = "用户/企业/组织名称", dataType = "String", required = true)
    @NotBlank(message = "名称不能为空")
    private String name;

}
